Ext.define('AmpleHarvest.objects.Statistics.Window.Summary.Tabs.cGridPanel',
{
	extend			: 'Ext.grid.Panel',
	require			:
	[
		"AmpleHarvest.DATA.Store.cSummary"
	],
	title			: "Users 1",

	initComponent	: function()
	{
		this.store = Ext.create("AmpleHarvest.DATA.Store.cSummary");

		this.store.proxy.extraParams =
		{
			"request"	: this.request
		};

		this.columns =
		[
				{
					header		: 'Name',
					dataIndex	: 'name',
					flex		: 1
				},
				{
					header		: 'Value',
					dataIndex	: 'value',
					renderer	: function(value)
					{
						if (!isNaN(value))
						{
							return Ext.util.Format.number(value,"0,0");
						}
						return value  ;
					},
					flex		: 1
				}
		]

		AmpleHarvest.objects.Statistics.Window.Summary.Tabs.cGridPanel.superclass.initComponent
				.apply(this);
	}
}
);
